package com.crazy.model.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ${author}
 * @since 2020-12-24
 */
@TableName("T_USER")
public class TUser extends Model<TUser> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 
        */
        public static final String id = "ID";
        /**
        * 
        */
        public static final String createTime = "CREATE_TIME";
        /**
        * 
        */
        public static final String updateTime = "UPDATE_TIME";
        /**
        * 头像
        */
        public static final String avatar = "AVATAR";
        /**
        * 邮箱
        */
        public static final String email = "EMAIL";
        /**
        * 是否被锁(0：未锁，1：上锁)
        */
        public static final String locked = "LOCKED";
        /**
        * 用户昵称
        */
        public static final String nickName = "NICK_NAME";
        /**
        * 密码
        */
        public static final String password = "PASSWORD";
        /**
        * 用户名
        */
        public static final String userName = "USER_NAME";
    }

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    /**
     * 头像
     */
    @TableField("AVATAR")
    private String avatar;

    /**
     * 邮箱
     */
    @TableField("EMAIL")
    private String email;

    /**
     * 是否被锁(0：未锁，1：上锁)
     */
    @TableField("LOCKED")
    private Integer locked;

    /**
     * 用户昵称
     */
    @TableField("NICK_NAME")
    private String nickName;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 用户名
     */
    @TableField("USER_NAME")
    private String userName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getLocked() {
        return locked;
    }

    public void setLocked(Integer locked) {
        this.locked = locked;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TUser{" +
        "id=" + id +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", avatar=" + avatar +
        ", email=" + email +
        ", locked=" + locked +
        ", nickName=" + nickName +
        ", password=" + password +
        ", userName=" + userName +
        "}";
    }
}
